package com.zenghus.view.simpl;


import java.lang.reflect.Method;

public class MouseTest {
    public static void main(String[] args) throws  Exception{

        MouseEventLisenter mel=new MouseEventLisenter();
        Method click=MouseEventLisenter.class.getMethod("onClick" ,null);
        Method up=MouseEventLisenter.class.getMethod("onUp" ,null);
        Method down=MouseEventLisenter.class.getMethod("onDown" ,null);
        Mouse m=new Mouse();
        m.addLisenter(MouseEventType.CLICK,mel,click);
        m.addLisenter(MouseEventType.UP,mel,up);
        m.addLisenter(MouseEventType.DOWN,mel,down);
        m.click();
        m.up();
        m.down();


    }
}
